package com.source.lightfowl.labelingRecord.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import java.io.Serializable;
import java.math.BigInteger;
import java.util.Date;

/**
 * 实体类
 * @author Administrator
 *
 */
@Entity
@Data
@Table(name="labeling_record")
//@JsonIgnoreProperties({"hibernateLazyInitializer","handler"})
public class Record implements Serializable{

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private BigInteger id;//
	private String barcodeNumber;//条码编号

	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	private Date LabelingDate;//贴标时间
	private String barcodeMachineId;//脚标机编号
	private String stallsId;//屠宰档口id
	private String salesTerminalId;//销售去向id（即销售终端）
	private String toMarkId;//去向市场id
	private String poultryCategoryId;//所属禽类id
	private String createBy;//创建者（发放人员）
	private Date createDate;//创建时间


	
}
